import request from '@/utils/request'

// 查询排班规则项列表
export function listSkdRuleItem(query) {
  return request({
    url: '/sms/skdRuleItem/list',
    method: 'get',
    params: query
  })
}

// 查询排班规则项详细
export function getSkdRuleItem(id) {
  return request({
    url: '/sms/skdRuleItem/' + id,
    method: 'get'
  })
}

// 新增排班规则项
export function addSkdRuleItem(data) {
  return request({
    url: '/sms/skdRuleItem',
    method: 'post',
    data: data
  })
}

// 修改排班规则项
export function updateSkdRuleItem(data) {
  return request({
    url: '/sms/skdRuleItem',
    method: 'put',
    data: data
  })
}

// 删除排班规则项
export function delSkdRuleItem(id) {
  return request({
    url: '/sms/skdRuleItem/' + id,
    method: 'delete'
  })
}
